﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;


namespace Task_Network_Center.General
{
    public class isNewTask : GCGDataBaseTableLib.UpdateTable
    {
        
        public bool CheckForNewTask(int user)
        {
            int newCount = GetNumberOfActualTask(user);
            if (newCount > GetNumberOfLastTask(user))
            {
                UpdateLastCountCell(user, newCount);
                return true;
            }
            else
            {
                UpdateLastCountCell(user, newCount);
                return false;
            }

            
        }
    }
}
